//
//  JKToast.h
//  LCPackage
//
//  Created by 马军凯 on 2021/6/22.
//  Copyright © 2021 龙采科技集团. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

#define DEFAULT_DISPLAY_DURATION 2.0f

@interface JKToast : NSObject
{
    NSString *text;
    UIButton *contentView;
    CGFloat  duration;
}

//显示
+ (void)showWithText:(NSString *)text_;
//自定义时间显示
+ (void)showWithText:(NSString *)text_ duration:(CGFloat)duration_;

//自定义距离上面显示
+ (void)showWithText:(NSString *)text_ topOffset:(CGFloat)topOffset_;
//自定义距离上面、时间显示
+ (void)showWithText:(NSString *)text_ topOffset:(CGFloat)topOffset duration:(CGFloat)duration_;

//自定义距离下面显示
+ (void)showWithText:(NSString *)text_ bottomOffset:(CGFloat)bottomOffset_;
//自定义距离下面、时间显示
+ (void)showWithText:(NSString *)text_ bottomOffset:(CGFloat)bottomOffset_ duration:(CGFloat)duration_;

@end

NS_ASSUME_NONNULL_END
